RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ / [R=301,L] # Melarang akses ke direktori yang tidak memiliki file index Options -Indexes # Mulai blokir bot analitik RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^AhrefsBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SemrushBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Majestic [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Screaming\ Frog [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Ubersuggest [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DotBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^BlexBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^YandexBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^spbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^linkdexbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SeznamBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^MegaIndex [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Cliqzbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^MJ12bot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DotBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Exabot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SiteExplorer [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SEOENGBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^archive.org_bot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^DomainStatsBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^AppEngine-Google [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Applebot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^seekport [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^msnbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Qwantify [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^OpenLinkProfiler [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Aboundexbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^ZoominfoBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Woorank [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^serpstatbot [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^admantx [NC] RewriteCond %{HTTP_USER_AGENT} ^Siteliner [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^SEOptimer [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Moz [NC] RewriteRule .* - [F,L] # Akhir blokir bot analitik